<?php echo form_open(uri_string()); ?>
<table border="0" cellspacing="0" cellpadding="0" class="infoTable">
  <tr> 
	 <td id='infoStr'> Name:&nbsp;</td>
	<td id='infoInput' align='left'> <label><?=h($franchises->name);?></label></td>
  </tr>
  <tr> 
	<td id='infoStr'>Tên đăng nhập:&nbsp;  </td>
	<td id='infoInput' align='left'> <label><?=h($franchises->franchise);?></label></td>
  </tr>
  <tr>
    <td id='infoStr'>Address1 <span class="required">(*)</span>:</td>
    <td id='infoInput' align='left'>
		<input name="address1" type="text" value="<?=h($franchises->address1); ?>" size="30" /><?=form_error('address1');?>
	</td>
  </tr>
  <tr>
    <td id='infoStr'>Address2:</td>
    <td id='infoInput' align='left'><input name="address2" type="text" value="<?=h($franchises->address2); ?>" size="30" /><?=form_error('address2');?>       
    </td>
  </tr>
  <tr>
    <td id='infoStr'>Address3:</td>
    <td id='infoInput' align='left'><input name="address3" type="text" value="<?=h($franchises->address3); ?>" size="30" /><?=form_error('address3');?>
    </td>
  </tr>
  <tr>
    <td id='infoStr'>City <span class="required">(*)</span>:</td>
    <td id='infoInput' align='left'><input name="city" type="text" value="<?=h($franchises->city); ?>" size="30" /><?=form_error('city');?>      
    </td>
  </tr>
  <tr>
    <td id='infoStr'>Postcode <span class="required">(*)</span>:</td>
    <td id='infoInput' align='left'><input name="postcode" type="text" value="<?=h($franchises->postcode); ?>" size="30" /><?=form_error('postcode');?>      
    </td>
  </tr>
  <tr>
    <td id='infoStr'>State <span class="required">(*)</span>:</td>
    <td id='infoInput' align='left'><input name="state" type="text" value="<?=h($franchises->state); ?>" size="30" /><?=form_error('state');?>      
    </td>
  </tr>
  <tr>
    <td id='infoStr'>Phone <span class="required">(*)</span>:</td>
    <td id='infoInput' align='left'><input name="phone" type="text" value="<?=h($franchises->phone); ?>" size="30" /><?=form_error('phone');?>      
    </td>
  </tr>
  <tr>
    <td id='infoStr'>Mobile:</td>
    <td id='infoInput' align='left'><input name="mobile" type="text" value="<?=h($franchises->mobile); ?>" size="30" /><?=form_error('mobile');?>      
    </td>
  </tr>
  <tr>
    <td id='infoStr'>Fax:</td>
    <td id='infoInput' align='left'><input name="fax" type="text" value="<?=h($franchises->fax); ?>" size="30" /><?=form_error('fax');?>      
    </td>
  </tr>
  <tr>
    <td id='infoStr'>Email:</td>
    <td id='infoInput' align='left'><input name="email" type="text" value="<?=h($franchises->email); ?>" size="30" /><?=form_error('email');?>      
    </td>
  </tr>
  <tr> 
	<td id='infoStr'>Start Date:</td>
	<td id='infoInput' align='left'><label><?=mysql_to_shortdate($franchises->start_date);?></label></td>
  </tr>
  <tr> 
	 <td id='infoStr'>End Date:</td>
	<td id='infoInput' align='left'><label><?=($franchises->end_date)?mysql_to_shortdate($franchises->end_date):"__/__/____";?></label></td>
  </tr>
  <tr>
    <td id='infoStr'>&nbsp;</td>
    <td id='infoInput' align='left'>
        <input type="submit" value="Save" class="save_button" />&nbsp;
        <input type="button" value="Cancel" class="cancel_button" onclick="document.location.href = SITE_URL + 'admin/home'" />
    </td>
  </tr>
</table>
</form>